//
//  YQRefreshBaseView.h
//  first
//
//  Created by 毕小强 on 16/11/9.
//  Copyright © 2016年 毕小强. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSInteger,YQRefreshState) {
    YQRefreshNormalState =1,    //一般状态
    YQRefreshWillState,         //将要刷新状态
    YQRefreshingState           //正在刷新状态
};
#define kRefreshViewHeight 120.0
#define kStartRefreshHeight kRefreshViewHeight/2.0
@interface YQRefreshBaseView : UIView
///刷新的父视图
@property(nonatomic,strong)UIScrollView *superScrollView;
///刷新事件绑定对象
@property(nonatomic,weak)id selecterTarget;
///刷新响应事件
@property(nonatomic,assign)SEL refreshSelector;
///父视图偏移量
@property(nonatomic,assign)CGFloat superScrollViewContOffet;
///父视图大小
@property(nonatomic,assign)CGSize superScrollViewContSize;
///头视图刷新状态
@property(nonatomic,assign)YQRefreshState headerRefreshState;
//尾视图刷新状态
@property(nonatomic,assign)YQRefreshState footerRefreshState;

//开启刷新
-(void)beginRefresh;
//结束刷新
-(void)endRefresh;
@end
